fix deletion order in QImageReader/Writer destructors
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sun, 17 Sep 2023 03:46:01 +0000 (04:46 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sun, 17 Sep 2023 03:46:01 +0000 (04:46 +0100)
commit80d32c71a2ecc70ca4ee47cca18c514798d16aba
treee5d583dea6462b960d0f84f3a2d9d54bdf0b5fdf
parent39b1f7577a16e37335fb5ccde0f335b3f5f9710f
fix deletion order in QImageReader/Writer destructors

Origin: upstream, commits
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f091026be1deb4b4
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5633cb69f68ca3d3
Last-Update: 2023-02-26

The device would be deleted before the image format handler, and hence
be a dangling pointer that could easily cause a crash if the handler
or codec would access it on destruction, e.g. for cleanup.

Gbp-Pq: Name image_deletion_order.diff
src/gui/image/qimagereader.cpp
src/gui/image/qimagewriter.cpp